package com.onesports.intelligent.k12.polarlight.mapper.sys;


import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.onesports.intelligent.k12.polarlight.domain.entity.sys.SysDataScope;
import com.onesports.intelligent.k12.polarlight.enums.DataScopeTypeEnum;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * 数据权限表
 *
 * @author wujj
 * @author aj
 */
@Mapper
public interface SysDataScopeMapper extends BaseMapper<SysDataScope> {
    /**
     * 获取用户数据权限配置
     *
     * @param accountId
     * @param dataScopeType
     * @return
     */
    List<SysDataScope> listByAccountId(@Param("accountId") String accountId, @Param("scopeType") DataScopeTypeEnum dataScopeType);

}
